const routes = [
    {
        path: "/",
        name: "main",
        component: () => import("@/layout/baseView.vue"),
        redirect: "/index",
        children: [
            {
                path: "index",
                name: "home",
                hidden: false,
                component: () => import("@/page/Chat.vue"),
                meta: { aside: true, title: '主页', icon: 'house' },
            },
            {
                path: "document",
                name: "document",
                meta: { aside: true, title: '文档', icon: 'house' },
                hidden: false,
                children: [
                    {
                        path: "list",
                        name: "list",
                        hidden: false,
                        component: () => import("@/page/document/fileList.vue"),
                        meta: { aside: true, title: '列表', icon: 'house' },
                    },
                    // {
                    //     path: "upload",
                    //     name: "upload",
                    //     hidden: false,
                    //     component: () => import("@/page/document/upload.vue"),
                    //     meta: { aside: true, title: '文档上传', icon: 'house' },
                    // }

                ]
            },
            {
                path: "ticket",
                name: "ticket",
                meta: { aside: true, title: 'Ticket', icon: 'tickets' },
                hidden: false,
                children: [
                    {
                        path: "ticketList",
                        name: "ticketList",
                        hidden: false,
                        component: () => import("@/page/ticket/ticketList.vue"),
                        meta: { aside: true, title: '股票列表', icon: 'ticket' },
                    }
                ]
            },
            {
                path: "stock",
                name: "stock",
                meta: { aside: true, title: 'Stock', icon: 'data-analysis' },
                hidden: false,
                children: [
                    {
                        path: "stockList",
                        name: "stockList",
                        hidden: false,
                        component: () => import("@/page/stock/stockList.vue"),
                        meta: { aside: true, title: '交易数据', icon: 'trend-charts' },
                    }
                ]
            }
        ],
    },
    {
        path: "/login",
        hidden: true,
        component: () => import("@/page/login/login.vue"),
    },
];

export default routes;